export default {
  mobile: /^[0-9]{11,20}$/,
  phone: /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/,
  fax: /^(\d{3,4}-)?\d{7,8}$/,
  NUMBER: /^[0-9]*$/, //主要用于某些数字需要reset 0的场景
  DECIMAL2: {
    pattern: /^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$/,
    message: '必须大于0且最多保留两位小数',
  },
  DECIMAL4: {
    pattern: /^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,4})?$/,
    message: '必须大于0且最多保留四位小数',
  },
  password: {
    pattern: /^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/,
    message: '密码必须是6-20位数字字母特殊字符任意两种组合',
  },


};
